package com.example.playedu.repository;

import com.example.playedu.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface UserRepository extends JpaRepository<User, Long> {
    Optional<User> findFirstByName(String name);
    Optional<User> findFirstByEmail(String email);
    @Override
    Page<User> findAll(Pageable pageable);
}
